<!-- 多仓库修改  t  2019-11-05 
51-62  显示隐藏button公用方法
-->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>华缘物流仓储管理系统项目公用资源路径</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico"/>
    <link rel="stylesheet" media="all" href="${pageContext.request.contextPath }/css/font.css">
    <link rel="stylesheet" media="all" href="${pageContext.request.contextPath }/lib/layui/css/layui.css">
	<link rel="stylesheet" media="all" href="${pageContext.request.contextPath }/css/xadmin.css">
    <link rel="stylesheet" media="all" href="${pageContext.request.contextPath }/lib/toastr/toastr.min.css">
    
    <script charset="utf-8" src="${pageContext.request.contextPath }/lib/jquery/jquery-3.3.1.js"></script>
    <script charset="utf-8" src="${pageContext.request.contextPath }/lib/layui/layui.js"></script>
    <script charset="utf-8" src="${pageContext.request.contextPath }/js/xadmin.js"></script>
    <script charset="utf-8" src="${pageContext.request.contextPath }/lib/md5/md5.js"></script>
    <script charset="utf-8" src="${pageContext.request.contextPath }/lib/toastr/toastr.min.js"></script>
    
    <script charset="utf-8" src="${pageContext.request.contextPath }/js/excel.js"></script>
    <!-- zc start -->
    <style type="text/css">
		.layui-table-click{
		    background-color:#ddf2e9 !important;
		}
	</style>
	<!-- zc end -->
    <script type="text/javascript">
	  	//提示框样式
		function toastrStyle(){
			toastr.options = {
				"closeButton": false,
				"debug": false,
				"newestOnTop": false,
				"progressBar": false,
				"positionClass": "toast-top-center",
				"preventDuplicates": false,
				"onclick": null,
				"showDuration": "5000",
				"hideDuration": "1000",
				"timeOut&quot": "100000",
				"extendedTimeOut": "0",
				"showEasing": "swing",
				"hideEasing": "linear",
				"showMethod": "fadeIn",
				"hideMethod": "fadeOut",
			};
		}
		/* ******************************多仓库修改  t  2019-11-05 开始*************************** */
		//显示隐藏button公用方法
	    function DisplayAndHiddenBtn(btnId, type) {
		    var currentBtn = document.getElementById(btnId);
		    if (type == "d") {
		        currentBtn.style.display = "block"; //style中的display属性
		    }
		    else if (type == "h") {
		        currentBtn.style.display = "none";
		    }
		}
	    /* ******************************页面优化  t  2019-11-11 结束*************************** */
	  	//日期格式化    例如：var time= date.format("yyyy-MM-dd hh:mm:ss");
	    Date.prototype.format = function(format) {
		    	var o = {
		        "M+" : this.getMonth() + 1, // month
		        "d+" : this.getDate(), // day
		        "h+" : this.getHours(), // hour
		        "m+" : this.getMinutes(), // minute
		        "s+" : this.getSeconds(), // second
		        "q+" : Math.floor((this.getMonth() + 3) / 3), // quarter
		        "S" : this.getMilliseconds()
		    	// millisecond
		    	}
		    	if (/(y+)/.test(format))
		        	format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
		    	for ( var k in o)
		        if (new RegExp("(" + k + ")").test(format))
		            format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
		    	return format;
		}
	    /* ******************************页面优化  t  2019-11-14 结束*************************** */
	    //layui table表格字段过长，展示不完整时，鼠标放到上面展示完整信息  使用,done:function(res){tdTitle();}
	    function tdTitle(){
	        $('th').each(function(index,element){
	            $(element).attr('title',$(element).text());
	        });
	        $('td').each(function(index,element){
	            $(element).attr('title',$(element).text());
	        });
	    };
    </script>
    <script type="text/javascript">
		$(function () {
			$(".xing").html("*");
			$(".xt_title").html("上海华缘物流有限公司西安分公司");
		});
	</script>
	<style type="text/css">
		.xing
		{
			color: red;
			float: left;
			display: block;
			width: 0.1%;
			margin-top:-25px;
			margin-left: 83%; 
			font-size: 24px;
		}
	</style>
    <script>
        //全局的ajax访问，处理ajax清求时sesion超时,cb_2019年11月13日15:53:43
        $.ajaxSetup({
            type: 'POST',
            complete: function(xhr,status) {
                var sessionStatus = xhr.getResponseHeader('sessionstatus');
                if (sessionStatus == "timeout") {
                    // 如果超时就处理 ，指定要跳转的页面
                    window.location.replace("../index.jsp");
                }
            }
        });
    </script>
</html>